﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="CheckInSearch.aspx.cs" Inherits="SWEN_HMS.BookingModule.CheckInSearch" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">


        .style10
        {
            text-align: center;
        }

        .auto-style17
        {
            font-size: x-large;

        }

        .auto-style20
        {
        }
        .auto-style21
        {
            font-family: Arial, Helvetica, sans-serif;
            font-size: 15px;
            padding: 2px;
            color: #000000;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" runat="server" contentplaceholderid="ContentPlaceHolder1">
        <asp:Panel ID="Panel1" runat="server" CssClass="auto-style21">
            <asp:ScriptManager ID="ScriptManager1" runat="server">
            </asp:ScriptManager>
            <br />
            <asp:MultiView ID="MultiView1" runat="server" ActiveViewIndex="0">
                <span class="auto-style20">
                <asp:View ID="View1" runat="server">
                    <div class="style10">
                        <span class="auto-style17">
                        <br />
                        Enter Guest Booking Information</span><br />
                        <asp:Label ID="error" runat="server" Font-Size="10pt" ForeColor="Red" Text="Label" Visible="False"></asp:Label>
                        <br />
                        </span></span></span><span>
                        First Name :</span><asp:TextBox ID="firstname" runat="server"></asp:TextBox>
                        <span class="auto-style20"><span>
                        <br />
                        Last Name : </span>
                        <asp:TextBox ID="lastname" runat="server"></asp:TextBox>
                        <span>
                        <br />
                        </span>
                        <br />
                        <span class="auto-style17">
                        <asp:Button ID="search" runat="server" CssClass="btnCSS" OnClick="search_Click" Text="Search" />
                        <asp:Button ID="cancel" runat="server" CssClass="btnCSS" OnClick="cancel_Click" Text="Cancel" />
                        <br />
                        <br />
                        </span></span>
                    </div>
                </asp:View>
                <asp:View ID="View2" runat="server">
                    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                        <ContentTemplate>
                            Current Time:
                            <asp:Label ID="time" runat="server" Font-Bold="True" Text="Label"></asp:Label>
                            <asp:Timer ID="Timer2" runat="server" Interval="1000">
                            </asp:Timer>
                            <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:SWENdbConnectionString %>" SelectCommand="SELECT [bookingID], [noOfAdult], [noOfChild], [roomNo], [checkIn], [checkOut], [noOfDay] FROM [Booking]"></asp:SqlDataSource>
                        </ContentTemplate>
                    </asp:UpdatePanel>
                    <br />
                    Guest Name:
                    <asp:Label ID="first" runat="server" Font-Bold="True" Text="Label"></asp:Label>
                    <asp:Label ID="last" runat="server" Font-Bold="True" Text="Label"></asp:Label>
                    &nbsp; Contact No:
                    <asp:Label ID="contactNo" runat="server" Font-Bold="True" Text="Label"></asp:Label>
                    <br />
                    <br />
                    <div class="style10">
                        <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False" BackColor="LightGoldenrodYellow" BorderColor="Tan" BorderWidth="1px" CellPadding="2" DataKeyNames="bookingID" DataSourceID="SqlDataSource1" ForeColor="Black" GridLines="None" OnSelectedIndexChanged="GridView1_SelectedIndexChanged">
                            <AlternatingRowStyle BackColor="PaleGoldenrod" />
                            <Columns>
                                <asp:CommandField ShowSelectButton="True" />
                                <asp:BoundField DataField="bookingID" HeaderText="BookingID" InsertVisible="False" ReadOnly="True" SortExpression="bookingID" />
                                <asp:BoundField DataField="roomNo" HeaderText="Room No" SortExpression="roomNo" />
                                <asp:BoundField DataField="noOfAdult" HeaderText="No of Adult" SortExpression="noOfAdult" />
                                <asp:BoundField DataField="noOfChild" HeaderText="No of Child" SortExpression="noOfChild" />
                                <asp:BoundField DataField="noOfDay" HeaderText="No of Days" SortExpression="noOfDay" />
                                <asp:BoundField DataField="checkIn" HeaderText="Check In Date" SortExpression="checkIn" DataFormatString="{0:dd/MM/yyyy}" />
                                <asp:BoundField DataField="checkOut" HeaderText="Check Out Date" SortExpression="checkOut" DataFormatString="{0:dd/MM/yyyy}" />
                            </Columns>
                            <FooterStyle BackColor="Tan" />
                            <HeaderStyle BackColor="Tan" Font-Bold="True" />
                            <PagerStyle BackColor="PaleGoldenrod" ForeColor="DarkSlateBlue" HorizontalAlign="Center" />
                            <SelectedRowStyle BackColor="DarkSlateBlue" ForeColor="GhostWhite" />
                            <SortedAscendingCellStyle BackColor="#FAFAE7" />
                            <SortedAscendingHeaderStyle BackColor="#DAC09E" />
                            <SortedDescendingCellStyle BackColor="#E1DB9C" />
                            <SortedDescendingHeaderStyle BackColor="#C2A47B" />
                        </asp:GridView>
                    </div>
                    <span class="auto-style20">
                    <br />
                    Selected Booking
                    <br />
                    </span>
                    <br />
                    Booking ID:&nbsp;<asp:Label ID="bookingID" runat="server" Font-Bold="True" Text="Label" Visible="False"></asp:Label>
                    &nbsp;Room No:
                    <asp:Label ID="roomNo" runat="server" Font-Bold="True" Text="Label" Visible="False"></asp:Label>
                    &nbsp;Check In Date:
                    <asp:Label ID="checkInDate" runat="server" Font-Bold="True" Text="Label" Visible="False"></asp:Label>
                    &nbsp;Check Out Date:
                    <asp:Label ID="checkOutDate" runat="server" Font-Bold="True" Text="Label" Visible="False"></asp:Label>
                    <br />
                    <br />
                    <asp:Button ID="checkIn" runat="server" CssClass="btnCSS" OnClick="checkIn_Click" Text="Check In" />
                    <br />
                </asp:View>
                </span>
            </asp:MultiView>
            <br />
            &nbsp;&nbsp;<br />
        </asp:Panel>
    </asp:Content>
<asp:Content ID="Content3" runat="server" contentplaceholderid="pageTitlePHolder">
                <span class="auto-style1" style="color: #000000">Check-In Search</span> 
</asp:Content>


